<!DOCTYPE html>
<html lang="en"
      xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.w3.org/1999/xhtml"
>
<head>
    <meta charset="UTF-8">
    <title>主页</title>
</head>
<body>
<h1>Shiro登录认证后主页面</h1>
<br/>
logined user：<span th:text="${session.user}"></span>
<br/>
<a href="/logout">登出</a>
<br/>
<a shiro:hasRole="admin" href="/myController/userLoginRoles">测试授权角色</a>
<br/>
<a shiro:hasPermission="user:select" href="/myController/userLoginPermissions">测试授权权限</a>
</body>
</html>